package com.koron.plan.web.feign;

import com.koron.bean.base.Response;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import com.koron.plan.web.patrolplan.bean.dto.ChangeShiftDTO;
import com.koron.plan.web.patrolplan.bean.query.ShiftRecordQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author twcao
 * @title: ShiftFeign
 * @projectName GDH_EAM_V2
 * @description: 交接班查询
 * @date 2021/11/514:22
 */
@FeignClient(value = "eam-service-operation", fallbackFactory = FeignFallbackFactory.class)
public interface ShiftFeign {

    @GetMapping("/shift/info")
    Response<ChangeShiftDTO> info(@SpringQueryMap ShiftRecordQuery shiftQuery);

    @GetMapping("/classesForm/shiftInfo")
    Response<ChangeShiftDTO> shiftInfo(@RequestParam("deptId") String deptId, @RequestParam("rankId") String rankId,@RequestParam("date") String date);

}
